Man sentenced after shooting at car with passengers in north