The lawsuit against the tech giant comes as software designers face more scrutiny for apps where drivers could be distracted.