Democrat Doug Jones has won the US Senate race in Alabama in a blow to Donald Trump, projections suggest.