Erdogan said the state of emergency, which would last three months, would allow his government to take swift measures against supporters of the coup.