Controversial Brazilian dam gets preliminary approval