The ruling, just four months after the Games ended, casts further shadow on the contracts for venues and infrastructure built in Rio and elsewhere in Brazil when the country was preparing to host the 2014 World Cup and the 2016 Rio Games.