I feel bad for causing them so much trouble.

Literal

They [to-に] that-much trouble caused [then-て] regretful think.

すまなく思う means 'to feel sorry, feel regretful' — slightly less formal than the stronger 申し訳ない ('inexcusable'). あんなに means 'so much, to that extent,' emphasizing the degree of trouble caused.