States pledged hundreds of troops and spent millions to help Texas at the border so far this year