There's plenty of precedent for suits by states and other governemental entities against the federal government. Printz v. US (regarding gun purchase background checks) comes to mind. Federal law may intrude on federalism as a principle of the Constitution. Since any objectionable part of the law is still part of the law, yes, it can be the basis for a suit although it would probably be ruled separable from the rest of the law.