Friday’s decision to pull the Republican health care bill was a painful setback for Mr. Trump and his agenda, calling into question the his ability and that of the Republican-run Congress to pass major legislation.