Alphabet, the parent of Google, is the third major technology company to settle a volley of lawsuits that Mr Trump brought.