A federal judge issued a preliminary injunction Friday that partially bars President Trump’s plan to assemble a border wall along the United States-Mexico border.

[Also read: Top DHS official to depart agency at Trump's request]

U.S. District Court Judge Haywood Gilliam’s ruling also blocks the administration from tapping into $1 billion of Pentagon funds to construct the border wall and restricts construction to only certain portions of Texas and Arizona.

“The case is not about whether the challenged border barrier construction plan is wise or unwise. It is not about whether the plan is the right or wrong policy response to existing conditions at the southern border of the United States,” Haywood wrote.

“Instead, this case presents strictly legal questions regarding whether the proposed plan for funding border barrier construction exceeds the Executive Branch’s lawful authority under the Constitution and a number of statutes duly enacted by Congress,” he wrote.

[Also read: House Republican blocks $19.1 billion disaster aid package]

The Pentagon approved allocating $1 billion for the U.S Army Corps of Engineers to support the Homeland Security Department and Customs and Border Protection in constructing part of a border wall. The funds were designated to build 57 miles of 18-feet-high pedestrian fencing, and to construct and improve roads.