In July , the United States passed legislation banning the import of gems from Burma through third-party countries .