The resolution comes less than a week after the world body 's International Court of Justice ruled that Kosovo 's unilateral 2008 declaration of independence was legal under international law .