WASHINGTON (AP) — President Donald Trump’s administration contends it has “broad discretion” to regulate press access to the White House as it fends off a legal challenge from CNN and other outlets over the revocation of journalist Jim Acosta’s “hard pass.”

In a legal filing ahead of a Wednesday hearing on CNN’s request for a temporary restraining order to restore Acosta’s access, the government argues it “was lawful” to punish Acosta for his behavior during a contentious Trump press conference last week.

The White House’s explanations for why it seized Acosta’s “hard pass,” which grants reporters as-needed access to the 18-acre complex, have shifted over the last week. Acosta has repeatedly clashed with Trump and press secretary Sarah Huckabee Sanders in briefings over the last two years.