The high court’s 7-2 ruling dealt with the narrow question of whether Republican Congressman Michael Bost and others had standing to sue.