Rivian Automotive, which assembles its high-end electric vehicles in central Illinois, can continue to sell directly to consumers in the state after a judge dismissed a lawsuit by the Illinois Automobile Dealers Association that also challenged sales by EV startup Lucid Group.