WASHINGTON — The Supreme Court on Monday dealt a surprise setback to the GOP and upheld state laws that allow for counting…