The Mediterranean island-nation Thursday became the 20th EU state to ratify the treaty , after 31 lawmakers out of 49 present in Nicosia voted in favor .