Three members of the Portland City Council have directed the city attorney to draft an ordinance that would withdraw the city from its contract with the Joint Office of Homeless Services.