Ireland’s president for the next seven years is an independent lawmaker who has long spoken in support of Palestinians and has been vocal about her distrust of European Union policies.