A car was “used as a weapon” against police in Londonderry in what has been described as an “appalling” incident.