The federal government can't pass any law it wants to. It's limited by Article 1 Section 8 of the Constitution, but the executive branch can choose how to enforce those laws.