No, they ruled against it. There were two moratoriums. The first was authorized by Congress. When that expired the CDC tried to unilaterally extend it and that was struck down:
https://www.americanbar.org/groups/business_law/resources/bu...
Realtor associations and rental property managers in Alabama and Georgia again sued to enjoin the CDC’s new (“second”) moratorium. The District Court entered judgment for the landlords, and the Supreme Court affirmed.
The Supreme Court found that Congress could speak clearly when authorizing an agency to exercise the powers of vast economic and political significance that the CDC exercised in its order, but Congress had not done so. In addition, the CDC order “intruded” in an area that is the particular domain of state law: the landlord-tenant relationship. Absent clear Congressional authority, which was lacking, the CDC order was too broad and was properly struck down.