Agents had barred a French researcher from entering the country following messages criticizing President Donald Trump.