Jim Acosta has his press pass back.

The Trump administration stood down on Monday from its nearly two-week-long dispute with CNN over the White House credentials of Mr. Acosta, informing the correspondent that his badge was formally restored. CNN in turn dropped its lawsuit on the matter, which had ballooned into a test of press freedoms in the Trump era.

But while it yielded to Mr. Acosta — whose testy questions had touched off Mr. Trump’s ire — the administration used the occasion to lay down a set of formal rules governing reporters’ behavior at future White House news conferences, a highly unusual step.

Among the guidelines was a restriction of one question per reporter, with follow-ups allowed at the discretion of the president or the White House official at the lectern. “Failure to abide,” the administration warned, “may result in suspension or revocation of the journalist’s hard pass.”

The White House sought to blame Mr. Acosta for behaving disrespectfully, although Mr. Trump often lobs insults at journalists and encourages a free-for-all format when taking questions from reporters.