Lawmakers on Cyprus have ratified the European Union treaty , despite opposition from the communist party of President Dimitris Christofias .