When specially equipped federal immigration agents arrived at the elementary school in Uvalde, Texas, on Tuesday, the local police at the scene would not allow them to go after the gunman who had opened fire on students inside the school, according to two officials briefed on the situation.