Republican Senator Bill Cassidy was the deciding vote after a lengthy stand-off.