A Christian school worker who was sacked after sharing social media posts about LGBT+ relationships teaching has won a Court of Appeal battle over her dismissal.