Judge allows bids for Brazil dam