(a)
In general— Notwithstanding any other provision of law, it shall not be a violation of Federal law for the States of California, Arizona, New Mexico, and Texas, or their designees, to construct barriers on Federal lands or waters for the purpose of preventing unlawful entry into the United States if—
(1)
the barriers do not decrease the ability of U.S. Customs and Border Patrol to patrol the border between the United States and Mexico, intercept unlawful migrants, or deport unlawful migrants; and
(2)
the barriers do not actually and substantially impede lawful movement along any navigable water, roadway, or other avenue of interstate commerce.
(b)
Rule of construction— Subsection (a) may not be construed as a defense to any claim of unlawful conduct unless the allegedly unlawful conduct consists of constructing or maintaining barriers on Federal lands or waters for the purpose of preventing unlawful entry into the United States.