Ford earned $17.9 billion in 2021, bolstered by a large gain on its Rivian stake.