The fate of the measure remained uncertain because of shaky support among Senate Republicans.