Federal Judge Sharon Gleason ruled the federal court lacked authority to order Alaska officials to investigate ballots cast for Dan J. Sullivan Jr.