Panel agrees Hagel will be confirmed