Answer: Yes they can.
Step-by-step explanation:
The Supreme Court is the custodian of the Constitution and has been granted the power of Judicial Review.
With this power, they are able to examine Legislative and Executive actions to determine if they abide by, or go against the Constitution of the United States.
If they believe that the action, such as the one above, is unconstitutional, they can strike it down on that basis. The action/ law will be declared null and void.