The U.S. Postal Service committed yesterday to buying a much larger portion of electric mail trucks than previously planned, handing a victory to environmental groups, auto unions and states that filed lawsuits claiming the original proposal unnecessarily favored gas cars and did not undergo adequate federal review.