So the implication is that if there were a law, passed by Congress, authorizing OSHA to have these powers, then that would be constitutional.
Correct. That's the way the court ruling reads.