Accord backs union calls for end of faith discrimination in schools