That depends on the parameters of the powers of the particular court. Some courts are appointed by military juntas with the express purpose of changing the law in order to legitimise the purposes of the people in power. A very close example may be bushes war on terrorism overriding the liberties of the US citizen.
The name given to the Supreme Court's power to declare a law unconstitutional is judicial review.
The Supreme Court gained the power to declare laws unconstitutional
Judicial review
The Supreme Court can declare federal laws unconstitutional and state laws unconstitutional. This power, known as judicial review, allows the Court to ensure that legislation aligns with the Constitution and protects individual rights.
Judicial review
In the United States, the power to declare a law unconstitutional lies with the judicial branch of government, specifically the federal courts, including the Supreme Court.
The U.S. Supreme Court has the power to declare an act of Congress unconstitutional.
The power of judicial review allows the US Supreme Court to declare laws, policies, executive orders and US treaties that are relevant to cases before the Court unconstitutional and nullify them if they violate the principles of the US Constitution.
The Supreme Court gained the power to declare laws unconstitutional.
The US Supreme Court's ability to declare an Act of Congress unconstitutional arises from the implied power of judicial review.
The Supreme Court Gained The Power To Declare Laws Unconstitutional
The Supreme Court has the authority to interpret the Constitution.