The Group Policy setting Administrative Templates/Mozilla/Firefox/Extensions/Extension Management allows you to insert JSON formatted data, that defines the extension settings for Firefox.
To create an extension whitelisting policy, "*" needs to be blocked, and only explicitly allowed extension Ids are allowed.
This script imports the explicitly allowed extension Ids from a CSV file and then creates the needed JSON data to be used in the GPO.