PM signals action on secondary boycotts of resources companies and says progressives want to tell Australians ‘what you can say, what you can think’