The lawsuit seeks to enforce a 2023 law that prohibits manufacturers from competing with their own franchised dealers.