The news agency and the Trump administration are in court in a disagreement over the White House's removal of AP reporters and photographers from the press pool.