Ford Motor significantly increased its commitment to electric cars and trucks on Monday by announcing that it would spend billions of dollars to build three battery factories and an electric truck plant in the United States, creating 11,000 jobs over the next four years.