The ratings agencies were responding to Chancellor Rachel Reeves’s plan to lift borrowing and change the UK’s fiscal rules to allow it.