Government to ensure law and order at all costs: PM