Spain set new rates for electricity suppliers that use renewable sources, waste and co-generation based on a “reasonable return,” formally ending a subsidy system dating to the 1990s that had spun out of control.