WASHINGTON (AP) — The Supreme Court has sided with a Wyoming property owner in a dispute over a bicycle trail that follows the route of an abandoned railroad. The decision could force the government to pay hundreds of millions of dollars to compensate landowners.

The justices ruled 8-1 Monday that property owner Marvin Brandt remains the owner of a 200-foot-wide trail that crosses his 83-acre parcel in southern Wyoming's Medicine Bow National Forest. The trail once was the path of a railroad and is among thousands of miles of abandoned railroads that have been converted to recreational trails.

Chief Justice John Roberts said the government was wrong to assert that it owns the trail.

The government says it faces compensation claims involving 10,000 properties in 30 states, possibly topping $100 million.