The deficit in the broadest measure of US trade rose to the highest level in more than eight years this spring.