This expression comes from various card games where on card or one suit has a higher rank than other cards. Laying a "trump" card will outrank cards that are not "trump" cards. So in this case "foreign relations" have outranked, or played a stronger role in the outcome than the law.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.