State officials have approved tax credits meant to help three pharmaceutical firms grow the industry’s footprint in New Jersey, while also dangling a nearly $40 million incentive to keep a global life sciences giant from pulling its U.S. headquarters out of the state.