SQL – Date Range Broken Down by Individual Month and Year while maintaining the ID



I need help breaking down a date range, from an existing table, into the individual month and year of the date range while maintaining the Identification Number assigned to that date range. Thanks!

CREATE TABLE #TEMP (BILL_YR INT, BEGIN_DT DATETIME, END_DT DATETIME )  INSERT INTO #TEMP (BILL_YR, BEGIN_DT, END_DT) VALUES ('1','2019-01-01','2019-12-31'), ('2','2020-01-01','2020-12-31') 

EXPECTED RESULT

BILL_YR MONTH    YEAR 1       1        2019 1       2        2019 1       3        2019 1       4        2019 1       5        2019 1       6        2019 1       7        2019 1       8        2019 1       9        2019 1       10       2019 1       11       2019 1       12       2019 2       1        2020 2       2        2020 2       3        2020 2       4        2020 2       5        2020 2       6        2020 2       7        2020 2       8        2020 2       9        2020 2       10       2020 2       11       2020 2       12       2020