Typically, tax credits from the state do not affect your federal tax credit and vice versa. However, a large state tax credit could affect the overall taxable income from the state, which would affect your federal tax return. This means that the amount you claim for your state tax credit will be taxable on your federal tax return.
It's important to work with a tax professional who can help you determine the best way to navigate these complex issues so you can receive the maximum benefit from your solar system.