The courts have had the power to decide what is legal and what isn't since 1803 and Marbury v Madison. While that isn't written in the Constitution, that case established the power of the court over interpretation ever since. And ALL the case law for 215 years the court has exercised that power. They have struck down 182 laws passed by Congress most signed by the President. And this was only up to 2006
The list of those laws can be found at the following link.
https://law.justia.com/constitution/us/acts-of-congress-held-unconstitutional.html
Since then other laws have been struck down by the court including DOMA. The Defense of Marriage Act (DOMA) (Pub.L. 104–199, 110 Stat. 2419, enacted September 21, 1996, 1 U.S.C. § 7 and 28 U.S.C. § 1738C) was a United States federal law that, prior to being ruled unconstitutional, defined marriage for federal purposes as the union of one man and one woman, and allowed states to refuse to recognize same-sex marriages granted under the laws of other states. Until Section 3 of the Act was struck down in 2013 (United States v. Windsor),
Judicial Review which is the right to rule on the interpretation and legality of any law enacted throughout the United States whether they are municipal, county, State or Federal. It has been the cornerstone of American jurisprudence.
If this doesn't satisfy you bob....I don't care.