Texas Military Department barred US border agents from trying to rescue the migrants in the Rio Grande, US officials say.