Prime Minister Gordon Brown has pledged that the Government would take "all the action necessary" to prevent the spread of swine flu.