Workplace employment agreements that ban class actions do not violate federal labor laws, the U.S. Supreme Court ruled on Monday.

The justices, in a 5-4 decision, sided with employers and the Trump administration’s Justice Department, which last June abandoned the Obama-era support of the National Labor Relations Board’s position.