United Airlines has agreed to purchase 24 Embraer jets that were originally contracted to be sold to Republic Airlines.