Uruguay’s state-run power company agreed to purchase electricity from a 50-megawatt solar farm that will be built in the country’s northwest.