Government loses appeal to overturn High Court solar ruling