The Justice Department under President Trump has switched sides in a labor case before the Supreme Court dating back to the Obama administration.

On Friday the agency said in an amicus brief that it would now oppose the National Labor Relations Board's case in NLRB v. Murphy Oil, in which the NRLB argues that an employment contract requiring employees to give up their right to a class-action lawsuit against an employer violates the National Labor Relations Act.

The DOJ explains that it has "reconsidered the issue and has reached the opposite conclusion" that the agency had reached under Obama. "[N]othing in the NLRA's legislative history indicates that Congress intended to bar enforcement of arbitration agreements like those at issue here," the brief said, according to Politico.

The move marks a rare flip-flip for the Justice Department in a Supreme Court case, the report said.