Since the Constitution was passed by a supermajority and is the supreme law of the land, it takes precedence over any regular legislation.
If a judge feels that some legislation goes against the Constitution, he is within his rights to declare that legislation unconstitutional.