A Sydney council has been plunged into a political crisis after the Mayor was accused of publishing personal details of the local MP.