Advocates in Alberta have lost a court battle in their fight against provincial restrictions on medical treatment for transgender youth.