The wire service had sued Trump administration officials after they restricted reporters from press events citing The A.P.’s references to the Gulf of Mexico in articles.

The wire service had sued Trump administration officials after they restricted reporters from press events citing The A.P.’s references to the Gulf of Mexico in articles.