Rainbow flags were allowed to fly in the stadium, despite complaints from Iran and Egypt, where homosexuality is illegal.