Trump was declared the winner in both states by the Associated Press, giving him a sweep of the crucial swing states.