Congress moves to end ban on gays in military