Legislation that would help President Barack Obama seal a Pacific Rim trade pact passed the U.S. Senate on Wednesday.