President-elect was handed legal wins as he works to fill his cabinet