The FIA has given Andretti Formula Racing the green light to join the Formula 1 grid, subject to it reaching a commercial agreement with FOM.