Over a four-year period, outside groups paid for the justices to take more than 360 trips.