The courts have no standing to rule on the actions taken in a declared emergency.. An emergency declaration is literally saying you have moved beyond the law. The remedy for president who abuses that power is impeachment. But the court cannot declare it unconstitutional.
These court rulings were not on the Coronavirus emergency actions but the ones previously set by the President back in early 2017, that were not heard by the SCOTUS until June 2018, when they allowed the president’s actions.