The package failed to pass with just one day before a potential government shutdown, and also exposed fault lines within Trump's party