Sri Lankan parliament approves state of emergency