Egypt's parliament agreed on Sunday to a two-year extension of emergency law requested by the government.