A senator's letter confirms the U.S. military moved to prevent the tracking after foreign adversaries used location data to target troops.