Bipartisan vote finalizes a two-year effort to nail down trade with two of America’s leading markets for red meat.