Turkish parliament ratifies 3-month state of emergency