Three American citizens imprisoned for years by China have been released, the White House said.