US resolved to work with allies after Brussels, Ankara attacks