Lawmakers in Uganda have rejected government plans to build a hydropower dam at the Murchison Falls national park.