Boeing has received a $3.9 billion contract to build two 747-8 aircraft for use as Air Force One by the US president, due to be delivered by December 2024 and painted red, white and blue.