The longest government shutdown in history has come to an end, with almost no one happy with the final result.