Why does the US sell weapons to leading sponsor of state terrorism?

Not even Joe Biden was willing to sell this weapons package to Qatar—yet now, the Trump administration appears to be rewarding those who support terrorists in the Middle East and the U.S., along with their anti-Western ideologies.