An ex-Labour councillor has appeared in court charged with blackmail after an investigation into an alleged Westminster honeytrap.