The pronunciation difference you've noticed in the word "blessed" in the two sentences is related to its usage as either an adjective or a verb.
In the sentence "Blessed are the poor in spirit," "blessed" is used as an adjective to describe the state of being blessed or favored. In this case, it is pronounced with two syllables, like "bles-id" (/ˈblɛs.ɪd/). This pronunciation follows the typical pattern for adjectives ending in "-ed."
In the sentence "God blessed them," "blessed" is used as a verb in the past tense, describing an action that occurred in the past. When "blessed" is used as a verb, it is pronounced with one syllable, like "blest" (/blɛst/). This pronunciation is a contraction of the word "blessed" and is commonly used when the word functions as a verb.
In general, the pronunciation of "blessed" depends on its role in the sentence. As an adjective, it has two syllables (/ˈblɛs.ɪd/), and as a verb, it has one syllable (/blɛst/).