The lawsuit is the latest blow to Tesla’s struggling solar business, which it acquired through its $2.6 billion purchase of SolarCity in 2016