Biden backs Ukraine's NATO membership, but says war must first end