NEW DELHI — India’s Parliament met a major demand of the protest leader Anna Hazare on Thursday by agreeing to consider his proposed anticorruption legislation, but it remained unclear whether Mr. Hazare would finally end a hunger strike that has spawned a nationwide popular movement and deeply shaken India’s government.