The gains fell far short of expectations. The unemployment rate ticked up to 4.2 percent.