Courts in the US of A and other nations, have ruled that religious freedom is not an absolute exemption from any other applicable laws.  For example the SDA church claimed in the Merikay (McLeod) Silver case that religious freedom exempted denominational employers from equal-opportunity employment laws.  The church lost and now in the US it must compensate women in comparable positions equally with men.