The legislation sets a non-binding goal of withdrawing U.S. troops from Iraq by April of next year .