The Associated Press gained an unlikely ally in its battle with the White House over what to call the Gulf of Mexico.