Nepal 's parliament has unanimously approved a resolution to curtail King Gyanendra 's powers .