California pastor David Lin has been released from prison in China after nearly two decades and has returned to the United States, the State Department said Sunday, putting an end to a case that has sparked international outcry from free speech advocates and U.S. officials who say he was wrongfully detained.