US shutdown ends as Congress strikes deal