A married Democratic Party council member has left his party following photos showing him visiting a motel with a woman during a council session.