The Associated Press journalist was prevented from entering an event because of the agency’s decision not to use the name Gulf of America.