Secret files show US officials tried to help Gaddafi cling to power