A California school district has agreed to pay a former teacher more than $300,000 after allegedly firing her for refusi