The Supreme court is correct. Congress may not delegate it's authority to unelected agency officials. If it is not codified in law passed by Congress, the agencies have no authority to regulate by fiat. Congress has no authority to grant the agency such power as it removes accountability to the electorate.