Iraq parliament accepts premier's resignation