More literally "from grace". Refers to someone voluntarily performing an act purely out of kindness, as opposed to for personal gain or from being forced to do it. In law, an ex gratia payment is one made without recognizing any liability or legal obligation.
A much more detailed analysis with detection of relationships or clauses can be found in our Sentence Analysis! Try it out!