Senate passes stopgap bill to avert shutdown, aid Ukraine