A judge has ruled that mandating covid vaccines for some Queensland frontline workers was unlawful based on human rights grounds.