The wife of a Conservative councillor has been sentenced after she posted a message on social media calling for hotels being used to house asylum seekers to be attacked.