Controversial dam in the Amazon gets Brazilian go-ahead