The carmaker, which has struggled with weak sales, is the latest company to announce a hefty investment in the United States.