The US president has been accused of violating the First Amendment after indefinitely barring The Associated Press from the Oval Office and Air Force One.