Khatami asks parliament members to end protest, vows to take legal action