Three American citizens imprisoned for years by China have been released, in a move marking the final months of the Biden presidency.