US finalises $4.7bn chips funding for Samsung