Spain’s parliament ratifies energy-saving measures