In a meandering address, President Trump rebuked global institutions and complained about immigration, environmentalists, windmills and more.