GOP hammers Obama's foreign policy