That is through the power of judicial review. Judicial review is the power to declare acts of the other two branches to be unconstitutional. It is possible for the judicial branch to invalidate a law that has been passed by Congress and signed by the president.
Hoped I Helped!