A federal judge on Monday issued a temporary restraining order to prevent Border Patrol agents from removing state-owned razor wire strung up along the Rio Grande in Texas to stem illegal immigration.