Asian shares mostly gained in cautious trading Wednesday after most U.S. stocks rose, settling back to where they were before last week’s swoon over the future of artificial…