The government says its biggest investment in a generation into tidal power will benefit coastal communities and the environment.