What did the US agree to do with the Panama Canal in 1978?

In 1978 the United States government voted a treaty. By this treaty or promise, the United States gave the ownership of the Panama Canal to the country of Panama in the year 2000.