This action was taken before the emergency was over, it's simply taken this long to go through the courts.
The Republican Supreme Court ruled against this because it is not simpatico with their pollical beliefs.
The statutory authority for Biden's actions is there, that doesn't matter because black-letter law and jurisprudence don't matter anymore, only conservative political outcomes.