Court allows giant statue of Virgin Mary to be built in Brazil