A church and its worshippers in NSW have been fined for breaking the state's COVID-19 rules.